package com.netease.nie.dto;

/**
 * 
 * @author wwbn3695
 * @createDate July 22nd,2016
 *
 */
public class UserLoginDto {

	private String ssn;
	
	private String userIp;
	
	private String mobile;
	
	private String autoLogin;
	
	private Long createTime;
	
	private Long cookieCreateTime;
	
	private String alias;
	
	private String misc;
	
	public UserLoginDto(String ssn, String userIp, String mobile,
			String autoLogin, Long createTime, Long cookieCreateTime) {
		if (ssn.lastIndexOf("@") == -1)
			ssn += "@163.com";
		this.ssn = ssn;
		this.userIp = userIp;
		this.mobile = mobile;
		this.autoLogin = autoLogin;
		this.createTime = createTime;
		this.cookieCreateTime = cookieCreateTime;
	}

	public UserLoginDto(String ssn, String userIp, String mobile,
			String autoLogin, Long createTime, Long cookieCreateTime,
			String alias, String misc) {
		if (ssn.lastIndexOf("@") == -1)
			ssn += "@163.com";
		this.ssn = ssn;
		this.userIp = userIp;
		this.mobile = mobile;
		this.autoLogin = autoLogin;
		this.createTime = createTime;
		this.cookieCreateTime = cookieCreateTime;
		this.alias = alias;
		this.misc = misc;
	}

	public String getSsn() {
		return ssn;
	}

	public void setSsn(String ssn) {
		this.ssn = ssn;
	}

	public String getUserIp() {
		return userIp;
	}

	public void setUserIp(String userIp) {
		this.userIp = userIp;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getAutoLogin() {
		return autoLogin;
	}

	public void setAutoLogin(String autoLogin) {
		this.autoLogin = autoLogin;
	}

	public Long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}

	public Long getCookieCreateTime() {
		return cookieCreateTime;
	}

	public void setCookieCreateTime(Long cookieCreateTime) {
		this.cookieCreateTime = cookieCreateTime;
	}

	public String getAlias() {
		return alias;
	}

	public void setAlias(String alias) {
		this.alias = alias;
	}

	public String getMisc() {
		return misc;
	}

	public void setMisc(String misc) {
		this.misc = misc;
	}

	@Override
	public String toString() {
		return "UserLoginDto [ssn=" + ssn + ", userIp=" + userIp + ", mobile="
				+ mobile + ", autoLogin=" + autoLogin + ", createTime="
				+ createTime + ", cookieCreateTime=" + cookieCreateTime
				+ ", alias=" + alias + ", misc=" + misc + "]";
	}
}
